.class public Lcom/estrongs/android/ui/homepage/i;
.super Lcom/estrongs/android/view/FileGridViewWrapper;
.source "HomePageGridViewWrapper.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/ui/homepage/i$e;
    }
.end annotation


# instance fields
.field private T0:Landroidx/recyclerview/widget/RecyclerView;

.field private U0:Lcom/estrongs/android/pop/app/log/q;

.field private V0:Lcom/estrongs/android/ui/homepage/HomeAdapter;

.field private W0:Z


# direct methods
.method public constructor <init>(Landroid/app/Activity;Les/q70;Lcom/estrongs/android/view/FileGridViewWrapper$a0;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1, p2, p3}, Lcom/estrongs/android/view/FileGridViewWrapper;-><init>(Landroid/content/Context;Les/q70;Lcom/estrongs/android/view/FileGridViewWrapper$a0;)V

    const/4 p1, 0x1

    .line 2
    iput-boolean p1, p0, Lcom/estrongs/android/ui/homepage/i;->W0:Z

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/homepage/i;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic a(Lcom/estrongs/android/ui/homepage/i;I)Ljava/lang/String;
    .locals 0

    .line 2
    invoke-virtual {p0, p1}, Lcom/estrongs/android/view/h0;->c(I)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method static synthetic b(Lcom/estrongs/android/ui/homepage/i;)V
    .locals 0

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->t0()V

    return-void
.end method


# virtual methods
.method protected C()V
    .locals 0

    return-void
.end method

.method public G0()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/ui/homepage/i;->W0:Z

    return v0
.end method

.method public K()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/i;->V0:Lcom/estrongs/android/ui/homepage/HomeAdapter;

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    return-void
.end method

.method public X()Lcom/estrongs/fs/g;
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->D:Lcom/estrongs/fs/g;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Lcom/estrongs/fs/m;

    const-string v1, "#home_page#"

    invoke-direct {v0, v1}, Lcom/estrongs/fs/m;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->D:Lcom/estrongs/fs/g;

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->D:Lcom/estrongs/fs/g;

    return-object v0
.end method

.method public Y()Ljava/lang/String;
    .locals 1

    const-string v0, "#home_page#"

    return-object v0
.end method

.method public a(Landroid/content/res/Configuration;)V
    .locals 0

    .line 9
    invoke-super {p0, p1}, Lcom/estrongs/android/view/FileGridViewWrapper;->a(Landroid/content/res/Configuration;)V

    .line 10
    iget-object p1, p0, Lcom/estrongs/android/ui/homepage/i;->V0:Lcom/estrongs/android/ui/homepage/HomeAdapter;

    invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    return-void
.end method

.method public a(Landroid/view/View$OnTouchListener;)V
    .locals 1

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/i;->T0:Landroidx/recyclerview/widget/RecyclerView;

    invoke-virtual {v0, p1}, Landroid/view/ViewGroup;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    return-void
.end method

.method protected a(Lcom/estrongs/fs/g;Lcom/estrongs/android/util/TypedMap;)V
    .locals 0

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/ui/homepage/i;->U0:Lcom/estrongs/android/pop/app/log/q;

    const/4 p2, 0x1

    invoke-virtual {p1, p2}, Lcom/estrongs/android/pop/app/log/q;->a(Z)V

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/view/FileGridViewWrapper;->O:Lcom/estrongs/android/view/FileGridViewWrapper$a0;

    if-eqz p1, :cond_0

    .line 5
    invoke-interface {p1, p0, p2}, Lcom/estrongs/android/view/FileGridViewWrapper$a0;->a(Lcom/estrongs/android/view/FileGridViewWrapper;Z)V

    :cond_0
    return-void
.end method

.method public a(Z)V
    .locals 0

    .line 7
    invoke-super {p0, p1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->a(Z)V

    if-nez p1, :cond_0

    .line 8
    iget-object p1, p0, Lcom/estrongs/android/ui/homepage/i;->U0:Lcom/estrongs/android/pop/app/log/q;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/log/q;->b()V

    :cond_0
    return-void
.end method

.method public c(Z)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/view/FileGridViewWrapper;->c(Z)V

    if-nez p1, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/view/h0;->h()Landroid/app/Activity;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 3
    instance-of v0, p1, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    if-eqz v0, :cond_0

    .line 4
    check-cast p1, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->i(Z)V

    :cond_0
    return-void
.end method

.method public d(Z)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/i;->U0:Lcom/estrongs/android/pop/app/log/q;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0, p1}, Lcom/estrongs/android/pop/app/log/q;->a(Z)V

    .line 3
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/ui/homepage/i;->V0:Lcom/estrongs/android/ui/homepage/HomeAdapter;

    if-eqz p1, :cond_1

    .line 4
    invoke-virtual {p1}, Lcom/estrongs/android/ui/homepage/HomeAdapter;->d()V

    :cond_1
    return-void
.end method

.method public j(I)V
    .locals 0

    return-void
.end method

.method public j(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/estrongs/android/ui/homepage/i;->W0:Z

    return-void
.end method

.method protected k()I
    .locals 1

    const v0, 0x7f0c01b2

    return v0
.end method

.method protected o0()V
    .locals 5

    const v0, 0x7f0904fc

    .line 1
    invoke-virtual {p0, v0}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroidx/recyclerview/widget/RecyclerView;

    iput-object v0, p0, Lcom/estrongs/android/ui/homepage/i;->T0:Landroidx/recyclerview/widget/RecyclerView;

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    const/4 v1, 0x1

    const-string v2, "show_home_log"

    invoke-virtual {v0, v2, v1}, Lcom/estrongs/android/pop/l;->a(Ljava/lang/String;Z)Z

    move-result v0

    const-string v2, "home_page_feed"

    if-eqz v0, :cond_0

    .line 3
    invoke-static {}, Lcom/estrongs/android/biz/cards/cardfactory/h;->b()Lcom/estrongs/android/biz/cards/cardfactory/h;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/estrongs/android/biz/cards/cardfactory/h;->a(Ljava/lang/String;)V

    .line 4
    :cond_0
    new-instance v0, Lcom/estrongs/android/ui/homepage/HomeAdapter;

    iget-object v3, p0, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    invoke-direct {v0, v3}, Lcom/estrongs/android/ui/homepage/HomeAdapter;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/homepage/i;->V0:Lcom/estrongs/android/ui/homepage/HomeAdapter;

    .line 5
    iget-object v3, p0, Lcom/estrongs/android/ui/homepage/i;->T0:Landroidx/recyclerview/widget/RecyclerView;

    invoke-virtual {v3, v0}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/i;->V0:Lcom/estrongs/android/ui/homepage/HomeAdapter;

    new-instance v3, Lcom/estrongs/android/ui/homepage/i$a;

    invoke-direct {v3, p0}, Lcom/estrongs/android/ui/homepage/i$a;-><init>(Lcom/estrongs/android/ui/homepage/i;)V

    invoke-virtual {v0, v3}, Lcom/estrongs/android/ui/homepage/HomeAdapter;->a(Lcom/estrongs/android/pop/app/log/viewHolder/LogHeaderViewHolder$b;)V

    .line 7
    new-instance v0, Lcom/estrongs/android/pop/app/log/q;

    iget-object v3, p0, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    iget-object v4, p0, Lcom/estrongs/android/ui/homepage/i;->T0:Landroidx/recyclerview/widget/RecyclerView;

    invoke-direct {v0, v3, v4}, Lcom/estrongs/android/pop/app/log/q;-><init>(Landroid/content/Context;Landroidx/recyclerview/widget/RecyclerView;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/homepage/i;->U0:Lcom/estrongs/android/pop/app/log/q;

    .line 8
    new-instance v3, Lcom/estrongs/android/ui/homepage/i$b;

    invoke-direct {v3, p0}, Lcom/estrongs/android/ui/homepage/i$b;-><init>(Lcom/estrongs/android/ui/homepage/i;)V

    invoke-virtual {v0, v3}, Lcom/estrongs/android/pop/app/log/q;->a(Lcom/estrongs/android/pop/app/log/q$m;)V

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/i;->U0:Lcom/estrongs/android/pop/app/log/q;

    new-instance v3, Lcom/estrongs/android/ui/homepage/i$c;

    invoke-direct {v3, p0}, Lcom/estrongs/android/ui/homepage/i$c;-><init>(Lcom/estrongs/android/ui/homepage/i;)V

    invoke-virtual {v0, v3}, Lcom/estrongs/android/pop/app/log/q;->a(Lcom/estrongs/android/biz/cards/cardfactory/CmsCardChangeListener;)V

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/i;->U0:Lcom/estrongs/android/pop/app/log/q;

    invoke-virtual {v0, v2, v1}, Lcom/estrongs/android/pop/app/log/q;->a(Ljava/lang/String;Z)V

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/statistics/c;->g(Landroid/content/Context;)V

    const-string v0, "home"

    .line 12
    invoke-static {v0}, Lcom/estrongs/android/statistics/c;->c(Ljava/lang/String;)V

    .line 13
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/i;->T0:Landroidx/recyclerview/widget/RecyclerView;

    new-instance v1, Lcom/estrongs/android/ui/homepage/i$d;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/homepage/i$d;-><init>(Lcom/estrongs/android/ui/homepage/i;)V

    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setOnScrollListener(Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;)V

    return-void
.end method

.method public v0()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/i;->V0:Lcom/estrongs/android/ui/homepage/HomeAdapter;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Lcom/estrongs/android/ui/homepage/HomeAdapter;->b()V

    .line 3
    :cond_0
    invoke-super {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->v0()V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/i;->U0:Lcom/estrongs/android/pop/app/log/q;

    if-eqz v0, :cond_2

    .line 5
    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/log/q;->c()Landroidx/recyclerview/widget/RecyclerView$Adapter;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 6
    instance-of v1, v0, Lcom/estrongs/android/biz/cards/cardfactory/CmsCardBaseAdapter;

    if-eqz v1, :cond_1

    .line 7
    check-cast v0, Lcom/estrongs/android/biz/cards/cardfactory/CmsCardBaseAdapter;

    invoke-virtual {v0}, Lcom/estrongs/android/biz/cards/cardfactory/CmsCardBaseAdapter;->j()V

    .line 8
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/i;->U0:Lcom/estrongs/android/pop/app/log/q;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/log/q;->f()V

    .line 9
    :cond_2
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/i;->V0:Lcom/estrongs/android/ui/homepage/HomeAdapter;

    if-eqz v0, :cond_3

    .line 10
    invoke-virtual {v0}, Lcom/estrongs/android/ui/homepage/HomeAdapter;->b()V

    :cond_3
    return-void
.end method

.method public x()Ljava/util/List;
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation

    .line 1
    new-instance v0, Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/estrongs/android/ui/homepage/i;->U0:Lcom/estrongs/android/pop/app/log/q;

    invoke-virtual {v1}, Lcom/estrongs/android/pop/app/log/q;->d()Ljava/util/List;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    return-object v0
.end method

.method public y0()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/view/FileGridViewWrapper;->y0()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/i;->V0:Lcom/estrongs/android/ui/homepage/HomeAdapter;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/ui/homepage/HomeAdapter;->c()V

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/statistics/c;->g(Landroid/content/Context;)V

    const-string v0, "home"

    .line 5
    invoke-static {v0}, Lcom/estrongs/android/statistics/c;->c(Ljava/lang/String;)V

    return-void
.end method
